<?php
namespace Model;
use Think\Model;
class StudentModel extends Model {
	protected $patchValidate = true;
	
	protected $_validate = array(
			array('id_number','','身份证号已经存在！',0,'unique',1),
			array('name','require','姓名必须填写'),
			array('id_number','require','身份证号必须填写'),
			array('dept','require','系别必须填写'),
			array('major','require','专业必须填写'),
			array('class','require','班级必须填写'),
			array('id_number','18','身份证不合法',0,'length'),
			array('password','require','密码必须填写'),
			array('password','6,10','密码太弱',0,'length'),
			array('repass','password','确认密码不正确',0,'confirm'),
			array('password','checkPwd','密码错误！',1,'function',4),
	);
	
	function checkPwd() {
		
	}
}